package com.ruoyi.novel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.novel.domain.Brokerage;

import java.util.List;

/**
 * 佣金记录Mapper接口
 *
 * @author 张三
 * @date 2025-06-11
 */
public interface BrokerageMapper extends BaseMapper<Brokerage>
{
    /**
     * 查询佣金记录
     *
     * @param id 佣金记录主键
     * @return 佣金记录
     */
    public Brokerage selectBrokerageById(Integer id);

    /**
     * 查询佣金记录列表
     *
     * @param brokerage 佣金记录
     * @return 佣金记录集合
     */
    public List<Brokerage> selectBrokerageList(Brokerage brokerage);

    /**
     * 新增佣金记录
     *
     * @param brokerage 佣金记录
     * @return 结果
     */
    public int insertBrokerage(Brokerage brokerage);

    /**
     * 修改佣金记录
     *
     * @param brokerage 佣金记录
     * @return 结果
     */
    public int updateBrokerage(Brokerage brokerage);

    /**
     * 删除佣金记录
     *
     * @param id 佣金记录主键
     * @return 结果
     */
    public int deleteBrokerageById(Integer id);

    /**
     * 批量删除佣金记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBrokerageByIds(Integer[] ids);
}
